package com.demo.crm.springboot3security.mapper;

import com.demo.crm.springboot3security.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import com.demo.crm.springboot3security.entity.User;
import com.demo.crm.springboot3security.entity.table.Tables;
import com.mybatisflex.core.query.QueryWrapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据用户名查找用户
     * 
     * @param username 用户名
     * @return 用户对象
     */
    User findByUsername(String username);

    List<Role> findRolesByUsername(String username);
}